@echo off
chcp 65001 > nul


REM 查找Visual Studio的安装路径
for /f "usebackq tokens=* delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do (
    echo "Visual Studio path：%%i"
    set InstallDir=%%i
)

REM 显示Visual Studio的安装路径
echo %InstallDir%
 
REM 你的后端项目的.sln文件路径，需要替换为实际路径
set SolutionPath=BackEnd\FastCode.sln

REM 打开后端项目
start "" "%InstallDir%\Common7\IDE\devenv.exe" "%SolutionPath%"

 
REM 打开前端项目，需要替换为你的VS Code路径和你的项目文件夹路径
code FrontEnd

exit